package com.grad.webstudy.model;

import java.io.Serializable;

public class RoleAuth implements Serializable {
    private Integer id;

    private Integer roleId;

    private String authIds;

    public RoleAuth() {
    }

    // TODO: 2020/2/11 增加建造者模式

    public RoleAuth(Integer roleId, String authIds) {
        this.roleId = roleId;
        this.authIds = authIds;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getAuthIds() {
        return authIds;
    }

    public void setAuthIds(String authIds) {
        this.authIds = authIds == null ? null : authIds.trim();
    }

    @Override
    public String toString() {
        return "RoleAuth{" +
                "id=" + id +
                ", roleId=" + roleId +
                ", authIds='" + authIds + '\'' +
                '}';
    }
}